package com.caishi.lkx.exam.records.dto;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class CountVideoRecordsDto implements OssDto<CountVideoRecordsDto>{

    ///观看视频数
    private int vn;

    ///最后观看视频id
    private String lastId;

    @Override
    public CountVideoRecordsDto parse(String json) {
        if (StrUtil.isBlank(json)) return this;
        CountVideoRecordsDto d = JSON.parseObject(json, CountVideoRecordsDto.class);
        BeanUtil.copyProperties(d, this);
        return this;
    }
}
